home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / acpi / suspend.d / 80-video-vesa-state.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2008-10-14  |  314b  |  13 lines

  1. #!/bin/sh
  2.  
  3. if [ x$SAVE_VBE_STATE = "xtrue" ]; then
  4.   # Check if we're in a VESA mode - if so, we need to do things more
  5.   # awkwardly. Otherwise, just use the state from boot.
  6.   VBEMODE=`vbetool vbemode get`;
  7.   if [ $VBEMODE != "3" ]; then
  8.     vbetool vbemode set 3;
  9.     vbetool vbestate save >$VBESTATE;
  10.   fi
  11. fi
  12.  
  13.